package com.deke.course.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.deke.course.vo.CourseVo;
import com.deke.course.vo.QianSubjectVo;
import com.deke.course.vo.SubjectVo;
import com.deke.entity.EduCourse;
import com.deke.entity.EduSubject;
import com.deke.vo.Result;
import io.swagger.models.auth.In;

import java.util.List;
import java.util.Map;

public interface EduCourseService {
    Result<IPage<EduCourse>> findByConditionPage(CourseVo courseVo, Integer current, Integer pageSize);

    Result changeStatus(Map map);

    Result updateCourse(CourseVo courseVo);

    //前台 课程中心
    Result<IPage<EduCourse>> fontFindCourse(Integer pageCurrent, Integer pageSize, QianSubjectVo qianSubjectVo);

    Result queryCourseShoucangByMemId(String memberId);

    Result queryCourseAndTeacherByCourseId(String id);

    Result addCollectCourse(EduCourse eduCourse);

    Result deleteFavoriteCourse(EduCourse eduCourse);

    Result findFavoriteCourse(EduCourse course);
}
